#include "exifhandler.h"
#include "cexifsymbian.h"

ExifHandler::ExifHandler(QObject* parent): QObject(parent)
{
    QT_TRAP_THROWING(d_ptr = CExifSymbian::NewL(*this));
}

ExifHandler::~ExifHandler()
{
    delete d_ptr;
}

void ExifHandler::getImageGps(const QString& filename)
{
    QString str = filename;
    str = str.replace("/","\\");
    str = str.trimmed();
    TFileName fn(str.utf16());
    d_ptr->LoadGPSPosition(fn);
}
